@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>广告管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3" style="width:195px">
                                <#SelectCon id="positionType" name="类型" >
                                    <option value="-1">请选择</option>
                                    <option value="1">PC版</option>
                                    <option value="2">APP版</option>
                                </#SelectCon>
                            </div>
                            <div class="col-sm-3" style="width:220px">
                                <#SelectCon id="adPositionId" name="广告位置" >
                                    <option value="">请选择</option>
                                </#SelectCon>
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Ads.search()"/>
                                @if(shiro.hasPermission("/ads/add")){
                                <#button name="添加" icon="fa-plus" clickFun="Ads.openAddAds()"/>
	                            @}
	                            @if(shiro.hasPermission("/ads/update")){
	                                <#button name="修改" icon="fa-edit" clickFun="Ads.openAdsDetail()" space="true"/>
	                            @}
	                            @if(shiro.hasPermission("/ads/delete")){
	                                <#button name="删除" icon="fa-remove" clickFun="Ads.delete()" space="true"/>
	                            @}
                            </div>
                        </div>
                        <div class="hidden-xs" id="AdsTableToolbar" role="group">
                            
                        </div>
                        <#table id="AdsTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/huamao/ads/ads.js"></script>
@}
